// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.ai.states;

import zombie.ai.State;
import zombie.characters.IsoGameCharacter;
import zombie.characters.IsoZombie;
import zombie.network.GameClient;
import zombie.popman.ZombiePopulationManager;

public final class ZombieSittingState extends State {
    private static final ZombieSittingState _instance = new ZombieSittingState();

    public static ZombieSittingState instance() {
        return _instance;
    }

    @Override
    public void enter(IsoGameCharacter owner) {
    }

    @Override
    public void execute(IsoGameCharacter owner) {
        IsoZombie isoZombie = (IsoZombie)owner;
        if (GameClient.bClient && owner.getCurrentSquare() != null) {
            ZombiePopulationManager.instance.sitAgainstWall(isoZombie, isoZombie.getCurrentSquare());
        }
    }

    @Override
    public void exit(IsoGameCharacter owner) {
    }
}
